import { readFileSync } from "fs";
import { DIReadAndProcessFile, type FileReader } from "./readAndProcessFile";

export class TextFileReader implements FileReader {
  read(filePath: string) {
    return readFileSync(filePath, { encoding: "utf-8" });
  }
}

const result = DIReadAndProcessFile("example.txt", new TextFileReader());

console.log(result);
